@use 'sass:map';

@use 'common/var' as *;
@use 'mixins/var' as *;
@use 'mixins/mixins' as *;

:root {
  @include set-css-var-value('color-white', $color-white);
  @include set-css-var-value('color-black', $color-black);

  @each $type in (primary, success, warning, danger, error, info) {
    @include set-css-color-rgb($type);
  }

  @include set-component-css-var('font-size', $font-size);
  @include set-component-css-var('font-family', $font-family);

  @include set-css-var-value('font-weight-primary', 500);
  @include set-css-var-value('font-line-height-primary', 24px);


  @include set-component-css-var('index', $z-index);


  @include set-component-css-var('border-radius', $border-radius);


  @include set-component-css-var('transition-duration', $transition-duration);

  @include set-component-css-var('transition-function', $transition-function);
  @include set-component-css-var('transition', $transition);


  @include set-component-css-var('component-size', $common-component-size);
}


:root {
  color-scheme: light;

  @include set-css-var-value('color-white', $color-white);
  @include set-css-var-value('color-black', $color-black);


  @each $type in (primary, success, warning, danger, error, info) {
    @include set-css-color-type($colors, $type);
  }


  @include set-component-css-var('bg-color', $bg-color);

  @include set-component-css-var('text-color', $text-color);

  @include set-component-css-var('border-color', $border-color);

  @include set-component-css-var('fill-color', $fill-color);


  @include set-component-css-var('box-shadow', $box-shadow);

  @include set-component-css-var('disabled', $disabled);


  @include set-component-css-var('overlay-color', $overlay-color);
  @include set-component-css-var('mask-color', $mask-color);


  @include set-css-var-value('border-width', $border-width);
  @include set-css-var-value('border-style', $border-style);
  @include set-css-var-value('border-color-hover', $border-color-hover);
  @include set-css-var-value('border', getCssVar('border-width') getCssVar('border-style') getCssVar('border-color'));


  @include css-var-from-global('svg-monochrome-grey', 'border-color');
}
